﻿using MotorLibrary.DAL;
using MotorLibrary.Model;
using MotorLibrary.Repository.Converter;
using MotorLibrary.Repository.DTO;
using System.Data.Entity;

namespace MotorLibrary.Repository
{
    public class EndpointRepository: GenericoRepository<Endpoint, EndpointDTO>, IEndpointRepository
    {
        public EndpointRepository(IEndpointConverter converter, IMotorDbContextFactory factory): base(converter, factory)
        {

        }

        public override DbSet<Endpoint> GetDbSet(MotorDbContext context)
        {
            return context.Endpoints;
        }
    }
}
